﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace WJP.DataPortal.WCF
{
    /// <summary>
    /// API响应信息
    /// </summary>
    [DataContract]
    [Serializable]
    public class ApiResponse
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        [DataMember]
        public bool Success { get; set; }

        /// <summary>
        /// 消息
        /// </summary>
        [DataMember]
        public string Message { get; set; }

        /// <summary>
        /// 结果
        /// </summary>
        [DataMember]
        public object Result { get; set; }

        /// <summary>
        /// 上下文
        /// </summary>
        [DataMember]
        public HybridDictionary Context { get; set; } = new HybridDictionary();
    }
}
